import {
  BasicLayout,
  RouteView
} from '@/layouts'

export const asyncRouterMap = [

]


// 公共固定路由
export const constantRouterMap = [{
    path: '/',
    name: 'index',
    meta: {
      title: '首页'
    },
    component: () => import('@v/Home')
  }, {
    path: '/test',
    name: 'test',
    component: () => import('@v/Index')
  },

  // 403、404、500
  {
    path: '/exception',
    name: 'exception',
    component: RouteView,
    redirect: '/404',
    meta: {
      title: '异常页',
      icon: 'warning'
    },
    hidden: true,
    children: [{
        path: '/403',
        name: 'Exception403',
        component: () => import( /* webpackChunkName: "fail" */ '@v/exception/403'),
        meta: {
          title: '403'
        }
      },
      {
        path: '/404',
        name: 'Exception404',
        component: () => import( /* webpackChunkName: "fail" */ '@v/exception/404'),
        meta: {
          title: '404'
        }
      },
      {
        path: '/500',
        name: 'Exception500',
        component: () => import( /* webpackChunkName: "fail" */ '@v/exception/500'),
        meta: {
          title: '500'
        }
      }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]


// 必须放最后的404
export const notFoundRouter = {
  path: '*',
  redirect: '/404',
  hidden: true
}